package com.wishwall.resources;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

@Path("/test")
public class SampleResource {

	@javax.ws.rs.core.Context
	javax.servlet.http.HttpServletRequest request;

	@GET
	@Path("/getPlatforms")
	@Produces({ MediaType.APPLICATION_JSON })
	public Response getPlatforms() {


		try {
			
			return Response.ok("angel").type(MediaType.APPLICATION_JSON).build();
		} catch (Exception e) {
			return Response.serverError().build();
		} 
	}

}
